<% istyle = 'float:right;border:1px solid #AAA;' %>
<%= image_tag('ptm-1.png', :style=>istyle) %>
<div title="Account login" id="loginform" class="form">
    <h3>Please login or <%=link_to "sign up", :action=>'signup'%> for a new account</h3>
    
<% form_tag :action=> "login" do %>
	<label for="user_login">Login:</label>
   <input type="text" name="user[login]" id="user_login" size="30" value=""/><br/>

   <label for="user_password">Password:</label>
   <input type="password" name="user[password]" id="user_password" size="30"/><br/>
   <input type="submit" name="login" value="Login &#187;" class="submitbutton" /> <% if @message %><div id="notice"><%= @message %></div><% end %>
<% end %>

</div>

<h3>Lost password ?</h3>
<p>You are not required to give a email address when you sign up.<br/>
But you can give one later by editing your user information.<br/>
This will enable you to reset your password in case you forget it.<br/>
<br/>
Did you forget your password ?<br/>
Type your email in this form, you will then receive a link by email to reset your password.<br/>
</p>
<% form_remote_tag(:update =>'status',:url => { :action => :send_reset_email }, :loading=>"$('status').innerHTML='Sending...'") do %>
<label for="email">Email:</label>
<%= text_field_tag :email %>
<%= submit_tag "Send &#187;" %>
<% end %>

<%= image_tag('ptm-2.png', :style=>istyle) %>

<div id='status'></div>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

